<!-- 个人中心 -->
<template>
  <view class="personal-wrap">
    <view class="top-info">
      <view class="info">
        <view class="left">
          <view class="head-img">
            <image
              mode="aspectFill"
              src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.qtx.com%2Fasset%2F9e%2F65%2F4e%2Fbbf7aa7d2d82c1bfea858f653faf3f10.jpg&refer=http%3A%2F%2Fimg.qtx.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1659873725&t=cdcf4317e37816056a18f9c838a4bb20"
            ></image>
          </view>
          <view class="name-phone">
            <view class="name"> 付小米 </view>
            <view class="phone"> 173****2623 </view>
          </view>
        </view>
        <view class="right">
          <u-icon name="arrow-right" color="#fff" size="28"></u-icon>
        </view>
      </view>
      <view class="coupons">
        <view class="coupons1">
          <view class="num">12</view>
          <view class="text">购物金</view>
        </view>
        <view class="coupons1">
          <view class="num">12</view>
          <view class="text">通用券</view>
        </view>
        <view class="coupons1">
          <view class="num">12</view>
          <view class="text">优惠券</view>
        </view>
      </view>
    </view>

    <view class="order">
      <view class="top">
        <view class="h2"> 购物订单 </view>
        <view class="more">
          全部订单
          <u-icon name="arrow-right" size="28"></u-icon>
        </view>
      </view>
      <view class="order-box">
        <view class="">
          <image
            class="order-img"
            :src="$IMG_URL + '/imgs/user/tab11.png'"
            mode=""
          ></image>
          <text>待付款</text>
        </view>
        <view class="">
          <image
            class="order-img"
            :src="$IMG_URL + '/imgs/user/tab22.png'"
            mode=""
          ></image>
          <text>待发货</text>
        </view>
        <view class="">
          <image
            class="order-img"
            :src="$IMG_URL + '/imgs/user/tab33.png'"
            mode=""
          ></image>
          <text>待收货</text>
        </view>
        <view class="">
          <image
            class="order-img"
            :src="$IMG_URL + '/imgs/user/tab55.png'"
            mode=""
          ></image>
          <text>退款/售后</text>
        </view>
      </view>
    </view>

    <view class="list">
      <view class="item">
        <view class="text"> 我的钱包 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 我的收藏 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 我的足迹 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 我的二维码 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 商邦消费明细 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
    </view>

    <view class="list">
      <view class="item">
        <view class="text"> 支付密码设置 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 在线客服 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 意见反馈 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
      <view class="item">
        <view class="text"> 用户协议 </view>
        <u-icon name="arrow-right" color="#C8C8C8" size="28"></u-icon>
      </view>
    </view>

    <view class="outLogin"> 退出账号 </view>
  </view>
</template>

<script>
import { mapMutations, mapActions, mapState, mapGetters } from "vuex";
</script>

<style lang="scss" scoped>
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.personal-wrap {
  padding-bottom: 100rpx;
  .top-info {
    height: 520rpx;
    width: 750rpx;
    background: #fe6766;
    .info {
      display: flex;
      align-items: center;
      padding: 30rpx;
      padding-top: 100rpx;
      justify-content: space-between;
      .left {
        display: flex;
        color: #fff;
        .head-img {
          width: 152rpx;
          height: 152rpx;
          overflow: hidden;
          border-radius: 50%;
          margin-right: 25rpx;
        }
      }
      .right {
        /deep/ .u-icon__icon {
          color: #fff !important;
        }
      }
    }

    .coupons {
      display: flex;
      padding: 30rpx;
      justify-content: space-between;
      > view {
        width: 200rpx;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .num {
          font-size: 40rpx;
          margin-bottom: 10rpx;
        }
        .text {
          font-size: 24rpx;
        }
      }
    }
  }

  .order {
    width: 690rpx;
    height: 252rpx;
    padding: 20rpx;
    background-color: #fff;
    margin: auto;
    border-radius: 20rpx;
    margin-top: -80rpx;
    .top {
      display: flex;
      justify-content: space-between;
      padding-top: 20rpx;
      .h2 {
        color: #333;
        font-size: 32rpx;
        font-weight: 500;
      }
      .more {
        color: #999;
        /deep/ .u-icon__icon {
          color: #999 !important;
        }
      }
    }
    .order-box {
      display: flex;
      justify-content: space-around;
      margin-top: 24rpx;
      > view {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .order-img {
        width: 72rpx;
        height: 72rpx;
        margin-bottom: 10rpx;
      }
    }
  }

  .list {
    background-color: #fff;
    border-radius: 20rpx;
    width: 690rpx;
    margin: 40rpx auto;
    .item {
      height: 108rpx;
      display: flex;
      padding: 0 20rpx;
      justify-content: space-between;
      align-items: center;
    }
    .text {
      font-weight: 500;
      font-size: 32rpx;
    }
  }

  .outLogin {
    width: 690rpx;
    height: 80rpx;
    background: #fff;
    margin: 40rpx auto;
    color: #fc5351;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
